import {Routes, RouterModule} from '@angular/router';
import {ModuleWithProviders} from '@angular/core';
  import {InAddComponent} from "./add/add.component";
import {ListComponent} from "./list/list.component";
import {InvitationComponent} from "./invitation.component";

export const routes: Routes = [
  {
    path:'invitation',
    component: InvitationComponent,
  },
  {
    path: 'add',
    component: InAddComponent,
    children: []
  },
  {
    path: 'list',
    component: ListComponent,
    children: []
  }
];

export const routing: ModuleWithProviders = RouterModule.forChild(routes);
